package javademo;

public abstract class Animal {
    private final String a = "private";
    public final String b = "public";

    public final void method1() {
        System.out.println("method1");
        System.out.println(a);
        System.out.println(b);
    }

    private void method2() {
        System.out.println("method2");
        System.out.println(a);
        System.out.println(b);
    }

    public abstract void method3();

}
